scoreboard players set @e[tag=sc,limit=1] SeGa_StandLast 0
execute if score @e[tag=sc,limit=1] SeGa_StandLastP matches 20 if entity @a[tag=SeGa_StandLastA,x=-79890,y=38,z=17,distance=0..4] run particle explosion -79887 39 17 1 1 1 0.0 50 normal
execute if score @e[tag=sc,limit=1] SeGa_StandLastP matches 20 as @a[tag=SeGa_StandLastA,x=-79890,y=38,z=17,distance=0..4] at @s run kill @e[tag=AzrielMob,distance=12..]
execute if score @e[tag=sc,limit=1] SeGa_StandLastP matches 20 if entity @a[tag=SeGa_StandLastA,x=-79890,y=38,z=17,distance=0..4] run particle minecraft:large_smoke -79887 39 17 1 1 1 0.1 150 normal
execute if score @e[tag=sc,limit=1] SeGa_StandLastP matches 20 if entity @a[tag=SeGa_StandLastA,x=-79890,y=38,z=17,distance=0..4] run playsound minecraft:block.end_gateway.spawn master @a -79887 39 17 100 0.8
execute if score @e[tag=sc,limit=1] SeGa_StandLastP matches 20 if entity @a[tag=SeGa_StandLastA,x=-79890,y=38,z=17,distance=0..4] run playsound minecraft:entity.zoglin.death master @a -79887 39 17 100 1
execute if score @e[tag=sc,limit=1] SeGa_StandLastP matches 20 if entity @a[tag=SeGa_StandLastA,x=-79890,y=38,z=17,distance=0..4] run playsound minecraft:entity.zoglin.death master @a -79887 39 17 100 0.9
execute if score @e[tag=sc,limit=1] SeGa_StandLastP matches 20 if entity @a[tag=SeGa_StandLastA,x=-79890,y=38,z=17,distance=0..4] run playsound minecraft:entity.zoglin.death master @a -79887 39 17 100 0.8
execute if score @e[tag=sc,limit=1] SeGa_StandLastP matches 20 if entity @a[tag=SeGa_StandLastA,x=-79890,y=38,z=17,distance=0..4] run playsound minecraft:entity.zoglin.death master @a -79887 39 17 100 0.7
execute if block -79873 39 92 birch_button if score @e[tag=sc,limit=1] SeGa_StandLastP matches 20 if entity @a[tag=SeGa_StandLastA,x=-79890,y=38,z=17,distance=0..4] run summon vindicator -79885 38 16 {Johnny:1,PersistenceRequired:1,Tags:["AzrielMob"],DeathLootTable:"skyblock:azriel_vindicator_tier1",Attributes:[{Name:generic.max_health,Base:12.0},{Name:generic.attack_damage,Base:0.5},{Name:generic.movement_speed,Base:0.20}],Health:4.0f,CustomName:"\"圣殿巡逻兵\"",CanPickUpLoot:0,HandItems:[{Count:1,id:"wooden_sword",tag:{display:{Name:"{\"text\":\"木剑\",\"italic\":false,\"color\":\"white\"}"}}}],HandDropChances:[0.003f]}
execute if block -79873 39 92 birch_button if score @e[tag=sc,limit=1] SeGa_StandLastP matches 20 if entity @a[tag=SeGa_StandLastA,x=-79890,y=38,z=17,distance=0..4] run summon vindicator -79885 38 18 {Johnny:1,PersistenceRequired:1,Tags:["AzrielMob"],DeathLootTable:"skyblock:azriel_vindicator_tier1",Attributes:[{Name:generic.max_health,Base:12.0},{Name:generic.attack_damage,Base:0.5},{Name:generic.movement_speed,Base:0.20}],Health:4.0f,CustomName:"\"圣殿巡逻兵\"",CanPickUpLoot:0,HandItems:[{Count:1,id:"wooden_sword",tag:{display:{Name:"{\"text\":\"木剑\",\"italic\":false,\"color\":\"white\"}"}}}],HandDropChances:[0.003f]}
execute unless block -79873 39 92 birch_button if score @e[tag=sc,limit=1] SeGa_StandLastP matches 20 if entity @a[tag=SeGa_StandLastA,x=-79890,y=38,z=17,distance=0..4] run summon vindicator -79885 38 16 {Johnny:1,PersistenceRequired:1,Tags:["AzrielMob"],DeathLootTable:"skyblock:azriel_vindicator_tier1",Attributes:[{Name:generic.max_health,Base:12.0},{Name:generic.attack_damage,Base:0.5},{Name:generic.movement_speed,Base:0.17}],Health:0.5f,CustomName:"\"圣殿巡逻兵\"",CanPickUpLoot:0,HandItems:[{Count:1,id:"wooden_sword",tag:{display:{Name:"{\"text\":\"木剑\",\"italic\":false,\"color\":\"white\"}"}}}],HandDropChances:[0.003f]}
execute unless block -79873 39 92 birch_button if score @e[tag=sc,limit=1] SeGa_StandLastP matches 20 if entity @a[tag=SeGa_StandLastA,x=-79890,y=38,z=17,distance=0..4] run summon vindicator -79885 38 18 {Johnny:1,PersistenceRequired:1,Tags:["AzrielMob"],DeathLootTable:"skyblock:azriel_vindicator_tier1",Attributes:[{Name:generic.max_health,Base:12.0},{Name:generic.attack_damage,Base:0.5},{Name:generic.movement_speed,Base:0.17}],Health:0.5f,CustomName:"\"圣殿巡逻兵\"",CanPickUpLoot:0,HandItems:[{Count:1,id:"wooden_sword",tag:{display:{Name:"{\"text\":\"木剑\",\"italic\":false,\"color\":\"white\"}"}}}],HandDropChances:[0.003f]}
execute if score @e[tag=sc,limit=1] SeGa_StandLastP matches 20 if entity @a[tag=SeGa_StandLastA,x=-79890,y=38,z=17,distance=0..4] run summon zoglin -79885 38 17 {PersistenceRequired:1,Tags:["AzrielMob"],DeathLootTable:"skyblock:azriel_shadow_tier1",Attributes:[{Name:generic.max_health,Base:50.0},{Name:generic.attack_knockback,Base:0.30},{Name:generic.attack_damage,Base:8.0},{Name:generic.movement_speed,Base:0.28}],Health:50.0f,CustomName:"\"？？？\""}
execute unless block -79873 39 92 birch_button if score @e[tag=sc,limit=1] SeGa_StandLastP matches 20 if entity @a[tag=SeGa_StandLastA,x=-79890,y=38,z=17,distance=0..4] run summon zoglin -79885 38 17 {PersistenceRequired:1,Tags:["AzrielMob"],DeathLootTable:"skyblock:azriel_shadow_tier1",Attributes:[{Name:generic.max_health,Base:50.0},{Name:generic.attack_knockback,Base:0.30},{Name:generic.attack_damage,Base:8.0},{Name:generic.movement_speed,Base:0.28}],Health:50.0f,CustomName:"\"？？？\""}
execute if score @e[tag=sc,limit=1] SeGa_StandLastP matches 20 if entity @a[tag=SeGa_StandLastA,x=-79890,y=38,z=17,distance=0..4] run fill -79888 38 18 -79887 40 16 air destroy
execute if score @e[tag=sc,limit=1] SeGa_StandLastP matches 20 if entity @a[tag=SeGa_StandLastA,x=-79890,y=38,z=17,distance=0..4] run scoreboard players set @e[tag=sc,limit=1] SeGa_StandLastP 21
execute if score @e[tag=sc,limit=1] SeGa_StandLastP matches 21 unless entity @e[tag=AzrielMob] run fill -79893 41 5 -79893 38 3 air destroy
execute if score @e[tag=sc,limit=1] SeGa_StandLastP matches 21 unless entity @e[tag=AzrielMob] run scoreboard players set @e[tag=sc,limit=1] SeGa_StandLastQ 0
execute if score @e[tag=sc,limit=1] SeGa_StandLastP matches 21 unless entity @e[tag=AzrielMob] run bossbar remove minecraft:8432199
execute if score @e[tag=sc,limit=1] SeGa_StandLastP matches 21 unless entity @e[tag=AzrielMob] run scoreboard players set @e[tag=sc,limit=1] SeGa_StandLastP 22

kill @e[type=item,nbt={Item:{id:"minecraft:quartz_block"}}]
kill @e[type=item,nbt={Item:{id:"minecraft:quartz_bricks"}}]
kill @e[type=item,nbt={Item:{id:"minecraft:quartz_pillar"}}]